package cn.edu.xmu.wnw.pojo;

import java.util.HashSet;
import java.util.Set;


/**
 * Group entity. @author MyEclipse Persistence Tools
 */

public class Group  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String name;
     private String description;
     private Integer state;
     private Set users = new HashSet(0);
     private Set permissions = new HashSet(0);


    // Constructors

    /** default constructor */
    public Group() {
    }

	/** minimal constructor */
    public Group(String name) {
        this.name = name;
    }
    
    /** full constructor */
    public Group(String name, String description, Integer state, Set users, Set permissions) {
        this.name = name;
        this.description = description;
        this.state = state;
        this.users = users;
        this.permissions = permissions;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getState() {
        return this.state;
    }
    
    public void setState(Integer state) {
        this.state = state;
    }

    public Set getUsers() {
        return this.users;
    }
    
    public void setUsers(Set users) {
        this.users = users;
    }

    public Set getPermissions() {
        return this.permissions;
    }
    
    public void setPermissions(Set permissions) {
        this.permissions = permissions;
    }
   








}